﻿using TwitterBootstrapMVC.BootstrapMethods;
using Web.UI.AdminLTE.Controls.Simple;
using Web.UI.AdminLTE.Controls.Tab;
using Web.UI.AdminLTE.Controls.Widget;
using Web.UI.AdminLTE.Enums;

namespace Web.UI.AdminLTE.Extensions
{
    public static class BootstrapHtmlExtension
    {
        public static BoxBuilder<TModel> Begin<TModel>(this BootstrapBase<TModel> bootstrap, Box box)
        {
            return new BoxBuilder<TModel>(bootstrap.Html, box);
        }

        public static TabBuilder<TModel> Begin<TModel>(this BootstrapBase<TModel> bootstrap, TabControl tabControl)
        {
            return new TabBuilder<TModel>(bootstrap.Html, tabControl);
        }

        public static SmallBox SmallBox<TModel>(this BootstrapBase<TModel> bootstrap, BootstrapColor backgroundColor)
        {
            return new SmallBox(backgroundColor);
        }

        public static AlertLte AlertLte<TModel>(this BootstrapBase<TModel> bootstrap, string alertHtml, AlertType alertType = AlertType.Danger)
        {
            return new AlertLte(alertHtml, alertType);
        }

        public static Callout Callout<TModel>(this BootstrapBase<TModel> bootstrap, CalloutType calloutType)
        {
            return new Callout(calloutType);
        }

        public static Progress Progress<TModel>(this BootstrapBase<TModel> bootstrap)
        {
            return new Progress();
        }
    }
}